package SoftWareTest;

import SoftWareTest.Calculator;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;

import static org.junit.Assert.assertEquals;

class CalculatorTest1 {

    @BeforeEach
    void setUp() {
        System.out.println("Before");
    }

    @AfterEach
    void tearDown() {
        System.out.println("After");
    }

    @Test
    public void addTest(){
        Calculator cal=new Calculator();
        int result= cal.add(1,1);
        Assertions.assertEquals(2, result);
    }

}